package com.szdxh.license.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.szdxh.license.dto.SelectPageDTO;
import com.szdxh.license.mapper.LicenseMapper;
import com.szdxh.license.pojo.License;
import com.szdxh.license.service.LicenseService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;


/**
 * @author 双子的小坏
 * @date 2024/7/25 16:29:17
 * @description : ImagesServiceImpl
 */
@Service
@RequiredArgsConstructor
public class LicenseServiceImpl  extends ServiceImpl<LicenseMapper, License> implements LicenseService {

   private final LicenseMapper licenseMapper;

   @Override
   public IPage<SelectPageDTO> selectPage(SelectPageDTO selectPageDTO) {
      Page<SelectPageDTO> page = new Page<>(selectPageDTO.getPageNo(), selectPageDTO.getPageSize());
      return licenseMapper.selecLicenses(page);
   }
}
